package com.youxin.cpcenter.dao;

import java.util.List;
import com.youxin.busfoundation.bean.classify.RequestClassifyIndustryBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.Cacheable;

import com.youxin.busfoundation.bean.classify.ResponseClassifyBean;
import com.youxin.cpcenter.model.TbConfigIndustry;

@Mapper
public interface TbConfigIndustryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbConfigIndustry record);

    int insertSelective(TbConfigIndustry record);

    //@Cacheable(value="tb_config_industry", key="'tb_config_industry'+#p0")
    TbConfigIndustry selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbConfigIndustry record);

    int updateByPrimaryKey(TbConfigIndustry record);
    
    //@Cacheable(value="tb_config_industry", key="'tb_config_industry_all'")
    List<ResponseClassifyBean> selectAll();

    List<ResponseClassifyBean> selectByUids(RequestClassifyIndustryBean bean);
}